#include "playercontroller.h"

PlayerController::PlayerController(QWidget *parent) : QWidget(parent)
{
    m_layout = new QHBoxLayout(this);
    setLayout(m_layout);

    m_prev = new QPushButton("prev");
    m_layout->addWidget(m_prev);

    m_play = new QPushButton("play");
    m_layout->addWidget(m_play);

    m_pause = new QPushButton("pause");
    m_layout->addWidget(m_pause);

    m_stop = new QPushButton("stop");
    m_layout->addWidget(m_stop);

    m_next = new QPushButton("next");
    m_layout->addWidget(m_next);

}

PlayerController::~PlayerController()
{

}

QWidget *PlayerController::prev()const{
    return m_prev;
}
QWidget *PlayerController::play()const{
    return m_play;
}
QWidget *PlayerController::pause()const{
    return m_pause;
}
QWidget *PlayerController::stop()const{
    return m_stop;
}
QWidget *PlayerController::next()const{
    return m_next;
}
